package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the SP_BO.TB_SP_BO_sr_adm_rgpt table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="SP_BO.TB_SP_BO_sr_adm_rgpt"
 */

public abstract class BasetbSpBoSRAdmRgpt  implements Serializable {

	public static String REF = "tbSpBoSRAdmRgpt";
	public static String PROP_MAJ_USER = "majUser";
	public static String PROP_DATE_MAJ = "dateMaj";
	public static String PROP_CODE_COULEUR = "codeCouleur";
	public static String PROP_ORIGINE_CUMULEE = "OrigineCumulee";
	public static String PROP_TYPE_RGPT = "typeRgpt";
	public static String PROP_cs_adm_rgpt = "csAdmRgpt";
	public static String PROP_RGPT = "rgpt";
	public static String PROP_cs_adm_pdt = "csAdmPdt";


	// constructors
	public BasetbSpBoSRAdmRgpt () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasetbSpBoSRAdmRgpt (java.lang.Integer csAdmRgpt) {
		this.setcsAdmRgpt(csAdmRgpt);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer csAdmRgpt;

	// fields
	private java.lang.Integer csAdmPdt;
	private java.lang.String rgpt;
	private java.lang.String typeRgpt;
	private java.lang.String origineCumulee;
	private java.lang.String codeCouleur;
	private java.lang.String majUser;
	private java.util.Date dateMaj;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="cs_adm_rgpt"
     */
	public java.lang.Integer getcsAdmRgpt () {
		return csAdmRgpt;
	}

	/**
	 * Set the unique identifier of this class
	 * @param csAdmRgpt the new ID
	 */
	public void setcsAdmRgpt (java.lang.Integer csAdmRgpt) {
		this.csAdmRgpt = csAdmRgpt;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: cs_adm_pdt
	 */
	public java.lang.Integer getcsAdmPdt () {
		return csAdmPdt;
	}

	/**
	 * Set the value related to the column: cs_adm_pdt
	 * @param csAdmPdt the cs_adm_pdt value
	 */
	public void setcsAdmPdt (java.lang.Integer csAdmPdt) {
		this.csAdmPdt = csAdmPdt;
	}



	/**
	 * Return the value associated with the column: RGPT
	 */
	public java.lang.String getRgpt () {
		return rgpt;
	}

	/**
	 * Set the value related to the column: RGPT
	 * @param rgpt the RGPT value
	 */
	public void setRgpt (java.lang.String rgpt) {
		this.rgpt = rgpt;
	}



	/**
	 * Return the value associated with the column: TYPE_RGPT
	 */
	public java.lang.String getTypeRgpt () {
		return typeRgpt;
	}

	/**
	 * Set the value related to the column: TYPE_RGPT
	 * @param typeRgpt the TYPE_RGPT value
	 */
	public void setTypeRgpt (java.lang.String typeRgpt) {
		this.typeRgpt = typeRgpt;
	}



	/**
	 * Return the value associated with the column: ORIGINE_CUMULEE
	 */
	public java.lang.String getOrigineCumulee () {
		return origineCumulee;
	}

	/**
	 * Set the value related to the column: ORIGINE_CUMULEE
	 * @param origineCumulee the ORIGINE_CUMULEE value
	 */
	public void setOrigineCumulee (java.lang.String origineCumulee) {
		this.origineCumulee = origineCumulee;
	}



	/**
	 * Return the value associated with the column: CODE_COULEUR
	 */
	public java.lang.String getCodeCouleur () {
		return codeCouleur;
	}

	/**
	 * Set the value related to the column: CODE_COULEUR
	 * @param codeCouleur the CODE_COULEUR value
	 */
	public void setCodeCouleur (java.lang.String codeCouleur) {
		this.codeCouleur = codeCouleur;
	}



	/**
	 * Return the value associated with the column: MAJ_USER
	 */
	public java.lang.String getMajUser () {
		return majUser;
	}

	/**
	 * Set the value related to the column: MAJ_USER
	 * @param majUser the MAJ_USER value
	 */
	public void setMajUser (java.lang.String majUser) {
		this.majUser = majUser;
	}



	/**
	 * Return the value associated with the column: D_MAJ
	 */
	public java.util.Date getDateMaj () {
		return dateMaj;
	}

	/**
	 * Set the value related to the column: D_MAJ
	 * @param dateMaj the D_MAJ value
	 */
	public void setDateMaj (java.util.Date dateMaj) {
		this.dateMaj = dateMaj;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmRgpt)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmRgpt tbSpBoSRAdmRgpt = (com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmRgpt) obj;
			if (null == this.getcsAdmRgpt() || null == tbSpBoSRAdmRgpt.getcsAdmRgpt()) return false;
			else return (this.getcsAdmRgpt().equals(tbSpBoSRAdmRgpt.getcsAdmRgpt()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getcsAdmRgpt()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getcsAdmRgpt().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}